libavahi-compat-libdnssd: Fix compilation
authorRosen Penev <[email protected]>
Sat, 2 Feb 2019 21:37:09 +0000 (13:37 -0800)
committerRosen Penev <[email protected]>
Sat, 2 Feb 2019 21:37:09 +0000 (13:37 -0800)
The inline if statement does not work correctly. Moved it to a more proper place.

Also changed the install to install the symlinks as well.

Signed-off-by: Rosen Penev <[email protected]>
libs/avahi/Makefile

index ddacce0351256a32a23cf95d05e691b38a6191ce..df9b0f5699534a5dc960829474c3cddb7bc2b910 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=avahi
 PKG_VERSION:=0.7
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/lathiat/avahi/releases/download/v$(PKG_VERSION) \
@@ -273,8 +273,6 @@ CONFIGURE_ARGS+= \
        --disable-dbm \
        --enable-gdbm \
        --enable-libdaemon \
-       $(and $(CONFIG_PACKAGE_libavahi-compat-libdnssd),ifeq ($(BUILD_VARIANT),dbus),\
-               --enable-compat-libdns_sd) \
        --disable-python \
        --disable-pygtk \
        --disable-python-dbus \
@@ -303,6 +301,10 @@ CONFIGURE_ARGS+= \
 endif
 
 ifeq ($(BUILD_VARIANT),dbus)
+ifneq ($(CONFIG_PACKAGE_libavahi-compat-libdnssd),)
+CONFIGURE_ARGS += \
+       --enable-compat-libdns_sd
+endif
 CONFIGURE_ARGS += \
        --enable-dbus
 else
@@ -348,7 +350,7 @@ endef
 
 define Package/libavahi-compat-libdnssd/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so.* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so* $(1)/usr/lib/
 endef
 
 define Package/avahi-utils/install